<?php echo $header;echo $sidebar ?>
		<style>
			a.edit_icon {
		    background: url("<?php echo $this->config->base_url(); ?>assets/admin/admin_images/icons/edit.gif") no-repeat scroll left top transparent;
		    display: inline-block;
		    height: 16px;
		    width: 16px;
			}
			a.delete2_icon {
   	 			background: url("<?php echo $this->config->base_url(); ?>assets/admin/images/icon/delete.png") no-repeat scroll left top transparent;
    			display: inline-block;
    			height: 16px;
    			width: 16px;
			}
			ul.yiiPager {
			    border: 0 none;
			    display: inline;
			    font-size: 11px;
			    line-height: 100%;
			    margin: 0;
			    padding: 0;
			}
			
			ul.yiiPager a:link, ul.yiiPager a:visited {
			    border: 1px solid #9AAFE5;
			    color: #0E509E;
			    font-weight: bold;
			    padding: 1px 6px;
			    text-decoration: none;
			}
			.star {color: red;}
		</style>
		<div class="span10 content">

			<?php echo $hugemenu ?>

			<h1>Email Marketing</h1>

			<?php if($this->session->flashdata('message')) {?>
			<div class="alert alert-success">
				<?php echo $this->session->flashdata('message') ?>
			</div>
			<?php  }?>

			<div>
			
				<!-- Nav tabs -->
				<ul class="nav nav-tabs">
				  <li><a href="template">Templates</a></li>
				  <li><a href="settings">Settings</a></li>
				  <li><a href="mass_campaigns">Mass Campaigns</a></li>
				  <li><a href="sent_mail">Sent Mail</a></li>
				  <li><a href="hot_leads">Hot Leads</a></li>
				  <li><a href="alerts">Alerts</a></li>
				  <li><a href="subscription">Subscriptions</a></li>
				  <li class="active"><a href="#">Mailing List</a></li>
				  <li><a href="filters">Filters</a></li>
				  <li><a href="../emailgroup">Group</a></li>
				</ul>
				
				<!-- Tab panes -->
				<div class="tab-content">

					<table cellspacing="0" cellpadding="0" border="0" width="100%" style="margin-left: 10px; margin-bottom: 10px;">
				        <tbody>
				            <tr>
				                 <td width="10%" style="padding-right:2px">
				                 <input type="submit" value="Subscribe All" name="search" class="btn btn-primary">
				                 </td>
				                 <td width="10%" style="padding-right:2px">
				                 <input type="submit" value="Subscribe Selected" name="search" class="btn btn-primary">
				                 </td>
				                  <td  width="10%" style="padding-right:2px">
				                 <input type="submit" value="Unsubscribe All" name="search" class="btn btn-primary">
				                 </td>
				                 <td  style="padding-right:2px">
				                 <input type="submit" value="Unsubscribe Selected" name="search" class="btn btn-primary">
				                 </td>
				            </tr>
				        </tbody>
					</table>
				
					<table cellspacing="0" cellpadding="0" border="0" width="100%" style="margin-left: 10px; margin-bottom: 10px;">
					        <tbody>
					            <tr>
					                 <td colspan="2" style="padding-right:10px">
					                 <b>Subscription:</b> 
					                 	 <select name="from_username" >
					                            <option value="">Latest News</option>
					                        </select> 
					                 </td>
					            </tr>
					        </tbody>
					</table>
				
					<form action="" method="POST">
					<table cellspacing="0" cellpadding="0" border="0" width="100%" style="margin-left: 10px; margin-bottom: 10px;">
					        <tbody>
					            <tr>
					                 
					                 <td colspan="2" style="padding-right:10px">
					                     <b>Name</b> 
					    				<input type="text" name="user_full_name" value='<?=set_value('user_full_name') ?>'/>
					        		</td>
					         <td colspan="2" style="padding-right:10px">
					                     <b>Email</b> 
					                     <input type="text" name="user_email" value='<?=set_value('user_email') ?>'  style="display:inline !important;"/>
					        </td>
					                 <td colspan="2" style="padding-right:10px">
					                     <b>Location</b> 
					                     <input type="text" name="user_email" value='<?=set_value('user_email') ?>'  style="display:inline !important;"/>
					                     &nbsp;<input type="submit" value="Search" name="search" class="btn btn-primary">
					                     &nbsp;<input type="submit" value="Save Filter" name="search" class="btn btn-primary">
					                 </td>
					                 
					            </tr>
					        </tbody>
					</table>
					</form>
					
					<!--Listing -->
					<table cellspacing="0" cellpadding="0" border="0" width="100%" style="margin-left: 10px; margin-bottom: 5px;">
					        <tbody>
					            <tr>
					                 <td align="left" colspan="1">
					                     <a href="<?=site_url('email_marketing/mailing_list')?>">All (3)</a>
					                     |
					                     <a href="<?=site_url('email_marketing/mailing_list')?>">Not Subscribed (3)</a>
					                     |
					                     <a href="<?=site_url('email_marketing/mailing_list')?>">Subscribed (0)</a>
					                  </td>
					            </tr>
					        </tbody>
					</table>
					<table class="table table-striped table-bordered table-hover table-primary">
		                <tbody>
		                    <?php if($msg){?>
		                    <tr>
		                        <td colspan="10" align="left" style="color:#FFF; background-color:#09C; padding:8px" class="msg">
		                            <?php echo $msg;?>
		                        </td>
		                    </tr>
		                    <?php }?>
		                    <thead>
			                    <tr>
		                            <th scope="col"><input type="checkbox" onclick="checkAll(this.checked,<?=count($user)?>)" id="allbox" name="allbox"></th>
		                            <th scope="col">Email</th>
		                            <th scope="col">Name</th>
		                            <th scope="col">City</th>
		                            <th scope="col">Zip Code</th>
		                            <th scope="col"></th>
								</tr>
							</thead>
		                	
		                	<tr>
	                            <td><input type="checkbox" value="" id="checkbox_<?=$k?>" name="checkbox_<?=$k?>"></td>
	                            <td>imraaanz@yahoo.com</td>
	                            <td>Imran zafar</td>
	                            <td>abc</td>
	                            <td>54000</td>
	                            <td><a href="<?=site_url('email_marketing/mailing_list')?>">Subscribe User</a></td>
		                   </tr>
		                   
		                    <tr>
	                            <td><input type="checkbox" value="" id="checkbox_<?=$k?>" name="checkbox_<?=$k?>"></td>
	                            <td>ahmed@yahoo.com</td>
	                            <td>Ahmed Ali</td>
	                            <td>abc</td>
	                            <td>54000</td>
	                            <td><a href="<?=site_url('email_marketing/mailing_list')?>">Subscribe User</a></td>
		                   </tr>
		                   
		                     <tr>
	                            <td><input type="checkbox" value="" id="checkbox_<?=$k?>" name="checkbox_<?=$k?>"></td>
	                            <td>junaid@yahoo.com</td>
	                            <td>Junaid Khan</td>
	                            <td>xyz</td>
	                            <td>72000</td>
	                            <td><a href="<?=site_url('email_marketing/mailing_list')?>">Subscribe User</a></td>
		                   </tr>
		                        
	                        <tr>
	                            <td align="right" colspan="6"><?php if($pagination_links){?>Go to page:<?php }?>
	                              <ul class="yiiPager" id="yw0">
	                                 <?php echo $pagination_links;?>
	                                    </ul>
	                            </td>
	                        </tr>
		                </tbody>
					</table>
				</div>
			</div>
		</div><!--/content-->
<?php echo $footer ?>
<script>
$(document).ready( function () {
    $(".collapse").collapse()({
      show: false
      });
});
</script>